package in.muton.edushare.pages.univ;

import in.muton.edushare.components.calendar.CalendarPanel;

import org.apache.wicket.PageParameters;

import com.edushare.common.constants.ApplicationConstants;

public class UnivCalendar extends UnivBase {

	public UnivCalendar(PageParameters params) {
		super(params);
		int month = params.getAsInteger("1", -1);
		int year = params.getAsInteger("2", -1);
		add(p = new CalendarPanel("calendarPanel", getModel().getObject(), this, month, year));
	}

	@Override
	public String getActivePage(PageParameters p) {
		return "UnivCalendar";
	}

	@Override
	public String getPageTitle() {
		return getLoggedInUser().getCompleteUserName() + " | "
		+ getModel().getObject().getUniversityName()
		+ " | Calendar | " + p.getMonth() + " | " 
		+ ApplicationConstants.APPLICATION_NAME;
	}
	CalendarPanel p;
}
